import request from '@/utils/request'

/**
 * @description: 获取设备点检记录清单
 * @param {*} params
 */
export function getMachineSpotCheckTable(params) {
  return request({
    url: '/machine/spot/check/table',
    params
  })
}

/**
 * @description: 获取设备点检详情
 * @param {*} params
 */
export function getMachineSpotCheckDetail(params) {
  return request({
    url: '/machine/getList',
    params
  })
}

/**
 * @description: 修改设备点检状态
 * @param {*} data
 */
export function changeMachineSpotBillStatus(data) {
  return request({
    url: '/machine/spot/check/billstaus/change',
    method: 'post',
    data
  })
}
